package com.woniu.common.entity;

import java.io.Serializable;

/**
 * tb_jp_maintain
 * @author 
 */
public class TbJpMaintain implements Serializable {
    private Integer id;

    /**
     * 描述
     */
    private String describes;

    /**
     * 维修员ID
     */
    private Integer bgrid;

    /**
     * 状态1.待修复、2.修复中、3.已修复、4.无法修复
     */
    private String mainstatue;

    /**
     * 维修时间
     */
    private String maintime;

    /**
     * 故障ID
     */
    private Integer malfunctionid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public Integer getBgrid() {
        return bgrid;
    }

    public void setBgrid(Integer bgrid) {
        this.bgrid = bgrid;
    }

    public String getMainstatue() {
        return mainstatue;
    }

    public void setMainstatue(String mainstatue) {
        this.mainstatue = mainstatue;
    }

    public String getMaintime() {
        return maintime;
    }

    public void setMaintime(String maintime) {
        this.maintime = maintime;
    }

    public Integer getMalfunctionid() {
        return malfunctionid;
    }

    public void setMalfunctionid(Integer malfunctionid) {
        this.malfunctionid = malfunctionid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpMaintain other = (TbJpMaintain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDescribes() == null ? other.getDescribes() == null : this.getDescribes().equals(other.getDescribes()))
            && (this.getBgrid() == null ? other.getBgrid() == null : this.getBgrid().equals(other.getBgrid()))
            && (this.getMainstatue() == null ? other.getMainstatue() == null : this.getMainstatue().equals(other.getMainstatue()))
            && (this.getMaintime() == null ? other.getMaintime() == null : this.getMaintime().equals(other.getMaintime()))
            && (this.getMalfunctionid() == null ? other.getMalfunctionid() == null : this.getMalfunctionid().equals(other.getMalfunctionid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDescribes() == null) ? 0 : getDescribes().hashCode());
        result = prime * result + ((getBgrid() == null) ? 0 : getBgrid().hashCode());
        result = prime * result + ((getMainstatue() == null) ? 0 : getMainstatue().hashCode());
        result = prime * result + ((getMaintime() == null) ? 0 : getMaintime().hashCode());
        result = prime * result + ((getMalfunctionid() == null) ? 0 : getMalfunctionid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", describes=").append(describes);
        sb.append(", bgrid=").append(bgrid);
        sb.append(", mainstatue=").append(mainstatue);
        sb.append(", maintime=").append(maintime);
        sb.append(", malfunctionid=").append(malfunctionid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}